home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1998 January / Macworld (1998-01).dmg / Shareware World / Utilities / Data & Time Management / ProMaker-Utils-1.0.2 / Sample nested if v2 < prev    next >
Text File  |  1997-06-25  |  526b  |  19 lines

  1. // Sample of a nested if statement
  2.  
  3. If [“Status(CurrentPlatform) = 1”]
  4.     Comment [“We are on the Mac”]
  5.     Show Message [“Hi, Macintosh user”]
  6. Else
  7.     Show Message [“Hi, Windows user”]
  8.     If [“Status(CurrentMessageChoice) = 2”]
  9.         Exit Script
  10.     Else
  11.         If [“Status(CurrentFileName) = "test"”]
  12.             Go to Layout [original layout]
  13.         Else
  14.             If [“Invoice::date = Status(CurrentDate)”]
  15.                 Perform Script [Sub-scripts, <unknown>]
  16.             End If
  17.        End If
  18.     End If
  19. End If